

//
//  HWTopicsDetiallFootView.m
//  HappyWeekend
//
//  Created by 赵洁 on 16/1/13.
//  Copyright © 2016年 com.mjykj.www. All rights reserved.
//

#import "HWTopicsDetiallFootView.h"
#define kgap 10 //jianju
@implementation HWTopicsDetiallFootView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        _likeButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _likeButton.frame = CGRectMake(kgap, kgap, 90, 30);
        _likeButton.layer.cornerRadius = 10;
        //_likeButton.backgroundColor = [UIColor grayColor];
        [self addSubview:_likeButton];
        UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(10, 5, 20, 20 )];
        image.image = [UIImage imageNamed:@"iconfont-collect"];
        [_likeButton addSubview:image];
        _likeLable = [[UILabel alloc]initWithFrame:CGRectMake(image.right+5, image.top, _likeButton.width-image.width, image.height)];
        _likeLable.numberOfLines = 0;
        _likeLable.font = [UIFont systemFontOfSize:12];
//        _likeLable.backgroundColor = [UIColor grayColor];

        [_likeButton addSubview:_likeLable];
        
        _shareButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _shareButton.frame = CGRectMake(kScreenWidth/2-kgap*5, kgap, 90, 30);
        _shareButton.layer.cornerRadius = 10;
        //_shareButton.backgroundColor = [UIColor grayColor];
        [self addSubview:_shareButton];
        UIImageView *shareimage = [[UIImageView alloc]initWithFrame:CGRectMake(10, 5, 20, 20 )];
        shareimage.image = [UIImage imageNamed:@"iconfont-share"];
        [_shareButton addSubview:shareimage];
        _shareLable = [[UILabel alloc]initWithFrame:CGRectMake(shareimage.right+5, shareimage.top, _shareButton.width-shareimage.width, shareimage.height)];
        _shareLable.numberOfLines = 0;
        _shareLable.font = [UIFont systemFontOfSize:12];
       // _shareLable.backgroundColor = [UIColor grayColor];
        [_shareButton addSubview:_shareLable];
        _commentButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _commentButton.frame = CGRectMake(290, kgap, 80, 30);
        _commentButton.layer.cornerRadius = 10;
        //_commentButton.backgroundColor = [UIColor grayColor];
        [self addSubview:_commentButton];
        UIImageView *commentImage = [[UIImageView alloc]initWithFrame:CGRectMake(5, 5, 20, 20 )];
        commentImage.image = [UIImage imageNamed:@"iconfont-shezhi"];
        [_commentButton addSubview:commentImage];
        _commentLable = [[UILabel alloc]initWithFrame:CGRectMake(commentImage.right+5, commentImage.top, _commentButton.width-commentImage.width, commentImage.height)];
        _commentLable.numberOfLines = 0;
        _commentLable.font = [UIFont systemFontOfSize:12];
      //  _commentLable.backgroundColor = [UIColor grayColor];

        [_commentButton addSubview:_commentLable];
        
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
